#include "uart.h"
#include "console.h"
#include "stdio.h"
#include "types.h"
#include "printf_test.h"

// 用于获取sp寄存器的值
static inline uint64 get_sp() {
    uint64 sp;
    asm volatile("mv %0, sp" : "=r"(sp));
    return sp;
}

void main(void) {
    console_init();
    clear_screen();

    // 运行所有 printf 测试
    run_all_printf_tests();

    printf("Entering main loop...\n");

    while (1) {
        // 无限循环
    }
}
